package cn.catfish.service;

import cn.catfish.entity.BorrowRecord;

import java.util.List;

public interface RecordService {
    BorrowRecord getRecordById(int id);
    List<BorrowRecord> getRecordsByUserId(int userId);
    List<BorrowRecord> getRecordsByBookId(int bookId);
    List<BorrowRecord> getRecords(int userId, int bookId);
    void addRecord(BorrowRecord borrowRecord);
    int deleteRecord(int id);
}
